package com.systop.ltbook.order;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

public final class OrderConstants {
	private OrderConstants() {
	}

	/** 待审核 */
	public static final String ORDER_STATE_NOT_AUDIT = "0";
	public static final String ORDER_STATE_NOT_AUDIT_STR = "待审核";

	/**
	 * 审核未通过 审核未通过其实就是客服不认可，相当于后台取消操作，相似前台取消。
	 **/
	public static final String ORDER_STATE_REJECT = "1";
	public static final String ORDER_STATE_REJECT_STR = "取消[系统]";

	/** 未付款 */
	public static final String ORDER_STATE_PASSED = "2";
	public static final String ORDER_STATE_PASSED_STR = "确认[未付款]";

	/** 已付款 */
	public static final String ORDER_STATE_PAYED = "3";
	public static final String ORDER_STATE_PAYED_STR = "已付款";

	/** 已发货 */
	public static final String ORDER_STATE_SEND = "4";
	public static final String ORDER_STATE_SEND_STR = "已发货";

	/** 已结订单 */
	public static final String ORDER_STATE_FINISHED = "5";
	public static final String ORDER_STATE_FINISHED_STR = "完成";

	/** 用户已取消 */
	public static final String ORDER_STATE_CANCELED = "6";
	public static final String ORDER_STATE_CANCELED_STR = "取消[用户]";

	/** 系统删除，前后台都不显示 */
	public static final String ORDER_STATE_REMOVE = "7";
	public static final String ORDER_STATE_REMOVE_STR = "系统删除";

	public static final Map<String, String> ORDER_STATE = Collections
			.synchronizedMap(new LinkedHashMap<String, String>());
	static {
		ORDER_STATE.put(ORDER_STATE_NOT_AUDIT, ORDER_STATE_NOT_AUDIT_STR);		
		ORDER_STATE.put(ORDER_STATE_PASSED, ORDER_STATE_PASSED_STR);
		ORDER_STATE.put(ORDER_STATE_PAYED, ORDER_STATE_PAYED_STR);
		ORDER_STATE.put(ORDER_STATE_SEND, ORDER_STATE_SEND_STR);
		ORDER_STATE.put(ORDER_STATE_FINISHED, ORDER_STATE_FINISHED_STR);
		ORDER_STATE.put(ORDER_STATE_CANCELED, ORDER_STATE_CANCELED_STR);
		ORDER_STATE.put(ORDER_STATE_REJECT, ORDER_STATE_REJECT_STR);
		//ORDER_STATE.put(ORDER_STATE_REMOVE, ORDER_STATE_REMOVE_STR);
	}
	public static final Map<String, String> FRONT_ORDER_STATE = Collections
			.synchronizedMap(new LinkedHashMap<String, String>());
	static {
		FRONT_ORDER_STATE.put(ORDER_STATE_NOT_AUDIT, ORDER_STATE_NOT_AUDIT_STR);
		FRONT_ORDER_STATE.put(ORDER_STATE_PASSED, ORDER_STATE_PASSED_STR);
		FRONT_ORDER_STATE.put(ORDER_STATE_PAYED, ORDER_STATE_PAYED_STR);
		FRONT_ORDER_STATE.put(ORDER_STATE_SEND, ORDER_STATE_SEND_STR);
		FRONT_ORDER_STATE.put(ORDER_STATE_FINISHED, ORDER_STATE_FINISHED_STR);
	}
	public static final Map<String, String> ADMIN_EDIT_ORDER_STATE = Collections
			.synchronizedMap(new LinkedHashMap<String, String>());
	static {
		ADMIN_EDIT_ORDER_STATE.put(ORDER_STATE_NOT_AUDIT, ORDER_STATE_NOT_AUDIT_STR);
		ADMIN_EDIT_ORDER_STATE.put(ORDER_STATE_PASSED, ORDER_STATE_PASSED_STR);
		ADMIN_EDIT_ORDER_STATE.put(ORDER_STATE_PAYED, ORDER_STATE_PAYED_STR);
		ADMIN_EDIT_ORDER_STATE.put(ORDER_STATE_SEND, ORDER_STATE_SEND_STR);
		ADMIN_EDIT_ORDER_STATE.put(ORDER_STATE_FINISHED, ORDER_STATE_FINISHED_STR);
	}
}
